<template>
  <div class="app-container">
    <div class="success">
      <div>
        <i class="el-icon-success success-icon"/>
      </div>
      <div class="success-text">发布宝贝成功</div>
      <div class="success-button">
        <el-button type="primary" @click="toPublishGoods">继续发布宝贝</el-button>
        <el-button @click="toGoodsList">查看宝贝列表</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: { },
  mixins: [],
  data() {
    return {
    }
  },
  methods: {
    toPublishGoods() {
      // 跳转到发布宝贝页面
      this.$router.push({ path: '/commodity/classify' })
    },
    toGoodsList() {
      // 跳转到发布宝贝页面
      this.$router.push({ path: '/commodity/cardList' })
    }
  }
}
</script>

<style lang="scss" scoped>
.success {
  margin: 0 auto;
  text-align: center;
  margin-top: 50px;
  .success-icon {
    font-size: 70px;
    color: #67C23A;
  }
  .success-text {
    font-size: 22px;
    color: #303133;
    margin-top: 30px;
  }
  .success-button {
    margin-top: 30px;
  }
}
</style>

